package com.ruoyi.customerService.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum CsClaimsBillingRecordsCollectEnum
{
    myComplaintAmount("myComplaintAmount", "金额"),
    myComplaintVolume("myComplaintVolume", "涉及单量"),
    againstMeComplaintAmount("againstMeComplaintAmount", "金额"),
    againstMeComplaintVolume("againstMeComplaintVolume", "涉及单量");

    private final String code;
    private final String info;

    CsClaimsBillingRecordsCollectEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (CsClaimsBillingRecordsCollectEnum value : CsClaimsBillingRecordsCollectEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
